Visitor Monitor



This script will send you an e-mail whenever the page with the script is loaded. This script works great as long as you don't have too many visitors or it spams your e-mail box! 

(As a security precaution, newer browsers pop up a security alert box for this script - you can't prevent it from showing) 


--------------------------------------------------------------------------------
 

<!-- FOUR STEPS TO INSTALL VISITOR MONITOR:

   1. Put the first code into the HEAD of your HTML document
   2. Add the onLoad event handler to the BODY tag
   3. Paste the last code into the BODY of your HTML document
   4. Change the 'dummy' e-mail address to your instead.  -->

<!-- STEP ONE: paste this code into the HEAD of your HTML document -->

<HEAD>

<SCRIPT LANGUAGE="JavaScript">

<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->

<!-- Begin
var startTime = new Date();
startTime = startTime.getTime();
var submissions = 0;

function checkForDuplicate() {
if (document.form1) {
document.form1.REFERRER.value = document.referrer;
document.form1.PLATFORM.value = navigator.appName
+ " " + navigator.appVersion;
submissions++;
if (submissions > 1)
return false;
else
return true;
}
else {
return false;
   }
}
function doneLoading() {
var stopTime = new Date();
stopTime = stopTime.getTime();
document.form1.LOADING_TIME.value = ((stopTime - startTime) / 1000)
+ " seconds";
document.form1.PAGE.value = document.title;
document.form1.SUBMITTER.click();
}
// End -->
</script>
</HEAD>

<!-- STEP TWO: Add the onLoad event handler to your BODY tag -->

<BODY onLoad="doneLoading()">

<!-- STEP THREE:  Paste this code into the BODY of your HTML document  -->

<FORM name="form1" METHOD=post action="mailto:antispammer@earthling.net?SUBJECT=Devious Visitor Monitor" enctype="text/plain" onSubmit="return checkForDuplicate()">
<input type="hidden" name="PAGE" value="none">
<input type="hidden" name="REFERRER" value="none">
<input type="hidden" name="PLATFORM" value="none">
<input type="hidden" name="LOADING_TIME" value="none">
<input type="submit" name="SUBMITTER" value="Click me to let me know you were here">
</form>

<!-- STEP FOUR:  Change the 'dummy' e-mail address to yours.  =-)  -->

<p><center>
<font face="arial, helvetica" size="-2">Free JavaScripts provided<br>
by <a href="http://javascriptsource.com">The JavaScript Source</a></font>
</center><p>

<!-- Script Size:  2.16 KB  -->